package com.geezdata.cps.sdk3rd.jushita.domain.fx;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class PurchaseOrder {

	@JSONField(name="fenxiao_id")
    private Long fenxiaoId;
	
	@JSONField(name="tc_order_id")
    private Long tcOrderId;

    private String status;
    
	@JSONField(name="supplier_username")
    private String supplierUsername;
	
	@JSONField(name="distributor_username")
    private String distributorUsername;
	
    private Date created;
	
    private Date modified;
	
	@JSONField(name="alipay_no")
    private String alipayNo;
	
	@JSONField(name="buyer_nick")
    private String buyerNick;
	
	@JSONField(name="buyer_payment")
    private BigDecimal buyerPayment;
	
	@JSONField(name="consign_time")
    private Date consignTime;
	
	@JSONField(name="distributor_from")
    private String distributorFrom;
	
	@JSONField(name="distributor_payment")
    private BigDecimal distributorPayment;
	
	@JSONField(name="end_time")
    private Date endTime;
	
    private Long id;
	
	@JSONField(name="logistics_company_name")
    private String logisticsCompanyName;
	
	@JSONField(name="logistics_id")
    private String logisticsId;
	
    private String memo;
	
	@JSONField(name="pay_time")
    private Date payTime;
	
	@JSONField(name="pay_type")
    private String payType;
	
	@JSONField(name="post_fee")
    private BigDecimal postFee;
	
    private String shipping;
	
	@JSONField(name="snapshot_url")
    private String snapshotUrl;
	
	@JSONField(name="supplier_from")
    private String supplierFrom;
	
	@JSONField(name="supplier_memo")
    private String supplierMemo;
	
	@JSONField(name="supplier_flag")
    private Long supplierFlag;
	
	@JSONField(name="total_fee")
    private BigDecimal totalFee;
	
	@JSONField(name="trade_type")
    private String tradeType;
	
	private Receiver receiver;
	
	@JSONField(name="sub_purchase_orders")
	private SubPurchaseOrders subPurchaseOrders;

	public PurchaseOrder() {
		super();
	}

	public PurchaseOrder(Long fenxiaoId, Long tcOrderId, String status, String supplierUsername,
			String distributorUsername, Date created, Date modified, String alipayNo, String buyerNick,
			BigDecimal buyerPayment, Date consignTime, String distributorFrom, BigDecimal distributorPayment,
			Date endTime, Long id, String logisticsCompanyName, String logisticsId, String memo, Date payTime,
			String payType, BigDecimal postFee, String shipping, String snapshotUrl, String supplierFrom,
			String supplierMemo, Long supplierFlag, BigDecimal totalFee, String tradeType, Receiver receiver,
			SubPurchaseOrders subPurchaseOrders) {
		super();
		this.fenxiaoId = fenxiaoId;
		this.tcOrderId = tcOrderId;
		this.status = status;
		this.supplierUsername = supplierUsername;
		this.distributorUsername = distributorUsername;
		this.created = created;
		this.modified = modified;
		this.alipayNo = alipayNo;
		this.buyerNick = buyerNick;
		this.buyerPayment = buyerPayment;
		this.consignTime = consignTime;
		this.distributorFrom = distributorFrom;
		this.distributorPayment = distributorPayment;
		this.endTime = endTime;
		this.id = id;
		this.logisticsCompanyName = logisticsCompanyName;
		this.logisticsId = logisticsId;
		this.memo = memo;
		this.payTime = payTime;
		this.payType = payType;
		this.postFee = postFee;
		this.shipping = shipping;
		this.snapshotUrl = snapshotUrl;
		this.supplierFrom = supplierFrom;
		this.supplierMemo = supplierMemo;
		this.supplierFlag = supplierFlag;
		this.totalFee = totalFee;
		this.tradeType = tradeType;
		this.receiver = receiver;
		this.subPurchaseOrders = subPurchaseOrders;
	}

	public Long getFenxiaoId() {
		return fenxiaoId;
	}

	public void setFenxiaoId(Long fenxiaoId) {
		this.fenxiaoId = fenxiaoId;
	}

	public Long getTcOrderId() {
		return tcOrderId;
	}

	public void setTcOrderId(Long tcOrderId) {
		this.tcOrderId = tcOrderId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSupplierUsername() {
		return supplierUsername;
	}

	public void setSupplierUsername(String supplierUsername) {
		this.supplierUsername = supplierUsername;
	}

	public String getDistributorUsername() {
		return distributorUsername;
	}

	public void setDistributorUsername(String distributorUsername) {
		this.distributorUsername = distributorUsername;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public String getAlipayNo() {
		return alipayNo;
	}

	public void setAlipayNo(String alipayNo) {
		this.alipayNo = alipayNo;
	}

	public String getBuyerNick() {
		return buyerNick;
	}

	public void setBuyerNick(String buyerNick) {
		this.buyerNick = buyerNick;
	}

	public BigDecimal getBuyerPayment() {
		return buyerPayment;
	}

	public void setBuyerPayment(BigDecimal buyerPayment) {
		this.buyerPayment = buyerPayment;
	}

	public Date getConsignTime() {
		return consignTime;
	}

	public void setConsignTime(Date consignTime) {
		this.consignTime = consignTime;
	}

	public String getDistributorFrom() {
		return distributorFrom;
	}

	public void setDistributorFrom(String distributorFrom) {
		this.distributorFrom = distributorFrom;
	}

	public BigDecimal getDistributorPayment() {
		return distributorPayment;
	}

	public void setDistributorPayment(BigDecimal distributorPayment) {
		this.distributorPayment = distributorPayment;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLogisticsCompanyName() {
		return logisticsCompanyName;
	}

	public void setLogisticsCompanyName(String logisticsCompanyName) {
		this.logisticsCompanyName = logisticsCompanyName;
	}

	public String getLogisticsId() {
		return logisticsId;
	}

	public void setLogisticsId(String logisticsId) {
		this.logisticsId = logisticsId;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public BigDecimal getPostFee() {
		return postFee;
	}

	public void setPostFee(BigDecimal postFee) {
		this.postFee = postFee;
	}

	public String getShipping() {
		return shipping;
	}

	public void setShipping(String shipping) {
		this.shipping = shipping;
	}

	public String getSnapshotUrl() {
		return snapshotUrl;
	}

	public void setSnapshotUrl(String snapshotUrl) {
		this.snapshotUrl = snapshotUrl;
	}

	public String getSupplierFrom() {
		return supplierFrom;
	}

	public void setSupplierFrom(String supplierFrom) {
		this.supplierFrom = supplierFrom;
	}

	public String getSupplierMemo() {
		return supplierMemo;
	}

	public void setSupplierMemo(String supplierMemo) {
		this.supplierMemo = supplierMemo;
	}

	public Long getSupplierFlag() {
		return supplierFlag;
	}

	public void setSupplierFlag(Long supplierFlag) {
		this.supplierFlag = supplierFlag;
	}

	public BigDecimal getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(BigDecimal totalFee) {
		this.totalFee = totalFee;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public Receiver getReceiver() {
		return receiver;
	}

	public void setReceiver(Receiver receiver) {
		this.receiver = receiver;
	}

	public SubPurchaseOrders getSubPurchaseOrders() {
		return subPurchaseOrders;
	}

	public void setSubPurchaseOrders(SubPurchaseOrders subPurchaseOrders) {
		this.subPurchaseOrders = subPurchaseOrders;
	}

	@Override
	public String toString() {
		return "PurchaseOrder [fenxiaoId=" + fenxiaoId + ", tcOrderId=" + tcOrderId + ", status=" + status
				+ ", supplierUsername=" + supplierUsername + ", distributorUsername=" + distributorUsername
				+ ", created=" + created + ", modified=" + modified + ", alipayNo=" + alipayNo + ", buyerNick="
				+ buyerNick + ", buyerPayment=" + buyerPayment + ", consignTime=" + consignTime + ", distributorFrom="
				+ distributorFrom + ", distributorPayment=" + distributorPayment + ", endTime=" + endTime + ", id=" + id
				+ ", logisticsCompanyName=" + logisticsCompanyName + ", logisticsId=" + logisticsId + ", memo=" + memo
				+ ", payTime=" + payTime + ", payType=" + payType + ", postFee=" + postFee + ", shipping=" + shipping
				+ ", snapshotUrl=" + snapshotUrl + ", supplierFrom=" + supplierFrom + ", supplierMemo=" + supplierMemo
				+ ", supplierFlag=" + supplierFlag + ", totalFee=" + totalFee + ", tradeType=" + tradeType
				+ ", receiver=" + receiver + ", subPurchaseOrders=" + subPurchaseOrders + "]";
	}
	
//    private String type;
//    private String cardId;
//    private String buyerTaobaoId;
	
}
